//
//  BarricadesCorpse.m
//  OC02_作业
//
//  Created by dllo on 15/12/1.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "BarricadesCorpse.h"

@implementation BarricadesCorpse

- (void)setProp:(NSString *)prop {
    _prop = prop;
}
- (NSString *)prop {
    return _prop;
}

- (void)setWeakness:(NSString *)weakness {
    _weakness = weakness;
}
- (NSString *)weakness {
    return _weakness;
}

- (instancetype)initWithTotalVolume:(NSInteger)totalVolume
                      onceBloodLoss:(NSInteger)onceBloodLoss
                               prop:(NSString *)prop
                           weakness:(NSString *)weakness {
    self = [super initWithTotalVolume:totalVolume onceBloodLoss:onceBloodLoss];
    if (self) {
        _prop = prop;
        _weakness = weakness;
    }
    return self;
}

+ (instancetype)barricadesCorpseWithTotalVolume:(NSInteger)totalVolume
                                  onceBloodLoss:(NSInteger)onceBloodLoss
                                           prop:(NSString *)prop
                                       weakness:(NSString *)weakness {
    BarricadesCorpse *barricadesCorpse = [[BarricadesCorpse alloc] initWithTotalVolume:totalVolume onceBloodLoss:onceBloodLoss prop:prop weakness:weakness];
    return barricadesCorpse;
}
@end
